const arr1 = [5, 6, 7];
const arr2 = [3, 4];

const foo = function (a, b) {
  const arr = [];
  const i=0;
  const j=0;
  const k=0;
  while(arr.length < 5){
   
  }
};

console.log(foo(arr1, arr2));
